# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         test426
# Description:  序列的长度,最大值和最小值
# Author:       $赵怡蕾
# Date:         2019/1/18
#-------------------------------------------------------------------------------

list1 = [1,30,40,100,-1,11.5]
print(len(list1))
print(max(list1))
print(min(list1))

# 如果序列里出现字符串则长度可以输出，最大值最小值无法判断
# 数据类型不同，max，min则抛出异常
list2 = [1,30,40,100,-1,'i an student']
print(len(list2))
print(max(list2))
print(min(list2))